﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Spine.Unity;

public class SpineSlotsHolder : MonoBehaviour
{
    public List<string> hideSlots = new List<string>();
    public List<string> showSlots = new List<string>();
    void Start()
    {
        SkeletonAnimation spineAnimation = transform.GetComponentInChildren<SkeletonAnimation>();

        for (int i = 0; i < hideSlots.Count; i++)
        {
            spineAnimation.skeleton.FindSlot(hideSlots[i]).A = 0;
        }

        for (int i = 0; i < showSlots.Count; i++)
        {
            spineAnimation.skeleton.FindSlot(showSlots[i]).A = 1;
        }
    }
}
